package com.dao;

import com.domain.Reply;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("replyDao")
public interface ReplyDao {
    //显示所有回复信息
    List<Reply> selectAllReply();

    //根据评论id显示回复信息
     List<Reply> selectReplyByCommentId(@Param("comment_id")int comment_id);

    //根据回复id删除回复信息
    public int deleteReplyById(int id);

    //根据评论id删除回复信息
    public int deleteReplyByCommentId(int comment_id);

    //添加回复
    public int addReply(Reply reply);
}
